package me.tingyugetc.crawler.parser;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class HtmlParser {

    public static String parse(String html) {

        return "";
    }

    public static String regexParse(String targetStr, String patterStr) {
        Pattern pattern = Pattern.compile(patterStr);

        Matcher matcher = pattern.matcher(targetStr);
        if (matcher.find()) {
            return matcher.group(1);
        }
        return "";
    }
}
